#ifndef MYEDIT_H
#define MYEDIT_H

#include <QObject>
#include <QLineEdit>
#include <QKeyEvent>


class MyEdit : public QLineEdit
{
    Q_OBJECT
public:
    // MyEdit();
    // QLineEdit 也是继承的 QWidget
    explicit MyEdit(QWidget* parent = nullptr);

protected:
    // 该函数主要用来重写按键点击事件
    void keyPressEvent(QKeyEvent* keyEvent);
    bool event(QEvent* event);

signals:

public slots:

};

#endif // MYEDIT_H
